<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>会员类型管理</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
  <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
    <form name="form1" action="member_type.php" method="post">
      <input type="hidden" name="dopost" value="save">
      <tr>
      <td height="24" colspan="8" background="../static/web/img/tbg.gif">
      <table width="100%" border="0">
      <tr>
      <td style="padding-left:10px;border-top:0;">SVIP会员管理</td>
      </tr>
      </table>
      </td>
      </tr>
    <tr bgcolor="#F8FCF1">
    <td width="25%" height="26" align="center">会员名称</td>
    <td width="15%" align="center">会员等级</td>
    <td width="15%" align="center">会员实价(元)</td>
    <td width="15%" align="center">会员虚价(元)</td>
    <td width="20%" align="center">会员时间(天)</td>
    <td width="10%" align="center">状态</td>
    </tr>
    <?php
    $dsql->SetQuery("Select * From #@__member_type");
    $dsql->Execute();
    $k=0;
    while($row = $dsql->GetObject())
    {
    $k++;
	  ?>
     <input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>">
     <tr align="center">
     <td height="26">
     <input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" style="width:90%" class='pubinputs'>
     </td>
     <td height="26">
     <select name='rank_<?php echo $k?>' id='rank_<?php echo $k?>' style='width:90%'>
    <?php
    foreach($arcranks as $kkk=>$vvv){
    if($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
    else echo "<option value='{$kkk}'>{$vvv}</option>";
    }
	  ?>
      </select>
      </td>
      <td>
      <input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" style="width:80%" class='pubinputs'>
      </td>
      <td>
      <input name="yuanjia_<?php echo $k?>" value="<?php echo $row->yuanjia?>" type="text" id="yuanjia_<?php echo $k?>" autocomplete="off" style="width:80%" class='pubinputs' />
      </td>
      <td>
      <select name='exptime_<?php echo $k?>' id='exptime_<?php echo $k?>' style='width:90%'>
      <?php
      foreach($times as $kkk=>$vvv){
      if($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
      else echo "<option value='{$kkk}'>{$vvv}</option>";
      }
	    ?>
      </select>
      </td>
      <td>
      <input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class='np'>
      </td>
      </tr>
      <?php
       }
	    ?>
      <input type="hidden" name="idend" value="<?php echo $k?>">
      <tr>
      <td bgcolor="#f8f8f8" align="center" height="24" colspan="8" class="py-3">
      <button type="submit" class="btn btn-success btn-sm">保存</button>
      </td>
      </tr>
</form>
</table>
</body>
</html>